package com.example.sprotsapi.Dao;

import com.example.sprotsapi.Pojo.user;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface userDao {

    List<user> getAll();

    List<user> pages(Integer pageNum,Integer pageSize);

    void setUser(user user);

    user getUser(Integer uid);

    void delUser(Integer uid);

    void updateUser(user user);

    user getUserName(String username);

    user getUserPhone(String phone);

    user login(String phone,String password);

}
